package com.dy.design_pattern_study.command_pattern.dome2.impl;

import com.dy.design_pattern_study.command_pattern.dome2.LogFactory;
import com.dy.design_pattern_study.utils.Utils;

import java.time.LocalDateTime;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-21
 * @Content 烤羊肉串 日志打印
 */
public class PrintBakeMuttonLog implements LogFactory {

    private static PrintBakeMuttonLog printBakeMuttonLog = new PrintBakeMuttonLog();

    private PrintBakeMuttonLog() {
    }

    public static PrintBakeMuttonLog getPrintBakeMuttonLog() {
        return printBakeMuttonLog;
    }

    @Override
    public void printLog() {
        System.out.println("日志：命令模式.烤羊肉串.." + Utils.dateToString(LocalDateTime.now(), null));
    }
}
